Remember the new value in all cases. (#126276, Damon Chaplin)
authorMatthias Clasen <maclas@gmx.de>
Sun, 9 Nov 2003 23:41:15 +0000 (23:41 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 9 Nov 2003 23:41:15 +0000 (23:41 +0000)
Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkeventbox.c (gtk_event_box_set_above_child):
Remember the new value in all cases.  (#126276, Damon Chaplin)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkeventbox.c

index 98da860ed4a2e47ab107a03202b77c1093fda59d..fe41dd56a901392a5a27efecf8a70bc09242d20b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
+       Remember the new value in all cases.  (#126276, Damon Chaplin)
+
 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/main.c (row_activated_cb): Call the do_
index 98da860ed4a2e47ab107a03202b77c1093fda59d..fe41dd56a901392a5a27efecf8a70bc09242d20b 100644 (file)
@@ -1,3 +1,8 @@
+Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
+       Remember the new value in all cases.  (#126276, Damon Chaplin)
+
 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/main.c (row_activated_cb): Call the do_
index 98da860ed4a2e47ab107a03202b77c1093fda59d..fe41dd56a901392a5a27efecf8a70bc09242d20b 100644 (file)
@@ -1,3 +1,8 @@
+Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
+       Remember the new value in all cases.  (#126276, Damon Chaplin)
+
 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/main.c (row_activated_cb): Call the do_
index 98da860ed4a2e47ab107a03202b77c1093fda59d..fe41dd56a901392a5a27efecf8a70bc09242d20b 100644 (file)
@@ -1,3 +1,8 @@
+Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
+       Remember the new value in all cases.  (#126276, Damon Chaplin)
+
 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/main.c (row_activated_cb): Call the do_
index 98da860ed4a2e47ab107a03202b77c1093fda59d..fe41dd56a901392a5a27efecf8a70bc09242d20b 100644 (file)
@@ -1,3 +1,8 @@
+Mon Nov 10 00:40:41 2003  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkeventbox.c (gtk_event_box_set_above_child): 
+       Remember the new value in all cases.  (#126276, Damon Chaplin)
+
 Sat Nov  8 23:06:02 2003  Matthias Clasen  <maclas@gmx.de>
 
        * demos/gtk-demo/main.c (row_activated_cb): Call the do_
index 5bc7b754b06d1e1d5b51976bca24252cd30d1737..6abdd1f72cac41a6a9008d6ea88b2635c8e1688b 100644 (file)
@@ -364,6 +364,8 @@ gtk_event_box_set_above_child (GtkEventBox *event_box,
 
   if (priv->above_child != above_child)
     {
+      priv->above_child = above_child;
+
       if (GTK_WIDGET_REALIZED (widget))
        {
          if (GTK_WIDGET_NO_WINDOW (widget))
@@ -381,7 +383,6 @@ gtk_event_box_set_above_child (GtkEventBox *event_box,
                gtk_widget_hide (widget);
              
              gtk_widget_unrealize (widget);
-             priv->above_child = above_child;
              
              gtk_widget_realize (widget);
              
@@ -389,8 +390,6 @@ gtk_event_box_set_above_child (GtkEventBox *event_box,
                gtk_widget_show (widget);
            }
        }
-      else
-       priv->above_child = above_child;
 
       if (GTK_WIDGET_VISIBLE (widget))
        gtk_widget_queue_resize (widget);